text = input()
text_counter = text.split()
print('Количество слов :', len(text_counter))
text = input()
words_counter = 0
a = 0
words = ""
while a < len(text):
  if text[a] == " ":
    words_counter += 1
    print(words)
    words = ""
  else:
    words += text[a]
  a += 1
print(words)
a = input()
print(len(a))
text = input()
a = 0
symbol = false
while a < len(text):
  if ord(text[a]) in range(ord('A'), ord('Z') + 1):
    symbol = true
  a += 1
print(symbol)
